package BIll;

import java.util.List;


import org.hibernate.annotations.ForceDiscriminator;



import Dao.DaoLogin;
import Entity.Administer;

public class BIllLogin {
     DaoLogin daoLogin =new DaoLogin();
     List<Administer> list = daoLogin.login();
     
     public boolean result(String zhanghao,String mima){
     boolean match = false;
     for(int i=0;i<list.size();i++){
     	if(list.get(i).getZhanghao().equals(zhanghao)&&list.get(i).getMima().equals(mima))
     		{
     		match=true;
     		break;
     		}
     
       }
     
     return  match;
     }
}